<template>
  <a-layout>
    <!-- 顶部导航区域 -->
    <a-layout-header class="header">
      <div>
        <!-- <img src="../assets/logo.png" alt="" style="height: 64px; float: left; padding:8px" /> -->
        <h1 style="color:#fff; float:left">ANT DESIGN VUE</h1>
        <!-- <span style="color:#fff; float:left">后台管理系统</span> -->
      </div>
      <div class="logo" />
      <a-menu
        theme="dark"
        mode="horizontal"
        v-model:selectedKeys="selectedKeys1"
        :style="{ lineHeight: '64px' }"
      >
        <a-menu-item key="1">顶部导航 1</a-menu-item>
        <a-menu-item key="2">顶部导航 2</a-menu-item>
        <a-menu-item key="3">顶部导航 3</a-menu-item>
        <a-menu-item key="4">顶部导航 4</a-menu-item>
      </a-menu>

    </a-layout-header>
    <!-- 侧边导航 -->
    <a-layout>
      <a-layout-sider width="200" :style="{overflow:'auto',background: '#fff', height:'100vh', }">
        <a-menu
          theme="dark"
          mode="inline"
          v-model:selectedKeys="selectedKeys2"
          v-model:openKeys="openKeys"
          :style="{ height: '100%', borderRight: 0 }"
        >
          <a-sub-menu key="sub1">
            <template #title>
              <span>
                <user-outlined />
                用户管理
              </span>
            </template>
            <a-menu-item key="1">用户列表</a-menu-item>
            <a-menu-item key="2">学生管理</a-menu-item>
            <a-menu-item key="3">教师管理</a-menu-item>
  
          </a-sub-menu>
          <a-sub-menu key="sub2">
            <template #title>
              <span>
                <laptop-outlined />
                订单管理
              </span>
            </template>
            <a-menu-item key="5">订单列表</a-menu-item>
            <a-menu-item key="6">订单状态</a-menu-item>
            <a-menu-item key="7">订单管理</a-menu-item>
           
          </a-sub-menu>
         
        </a-menu>
      </a-layout-sider>
      <a-layout style="padding: 0 24px 24px">
        <a-breadcrumb style="margin: 16px 0">
          <a-breadcrumb-item>Home</a-breadcrumb-item>
          <a-breadcrumb-item>List</a-breadcrumb-item>
          <a-breadcrumb-item>App</a-breadcrumb-item>
        </a-breadcrumb>
        <a-layout-content
          :style="{
            background: '#fff',
            padding: '24px',
            margin: 0,
            minHeight: '280px',
          }"
        >
          Content
        </a-layout-content>
        <!-- 底部版权信息 -->
        <a-layout-footer style="text-align: center">
           ©2021.3.22 Created by ABCD
        </a-layout-footer>
      </a-layout>
    </a-layout>
  </a-layout>
</template>
<script>

import {
  UserOutlined,
  LaptopOutlined,
  NotificationOutlined,
  WarningOutlined
} from "@ant-design/icons-vue";
import { defineComponent, ref } from "vue";
export default defineComponent({
  components: {
    UserOutlined,
    LaptopOutlined,
    NotificationOutlined,
    WarningOutlined
  },

  setup() {
    return {
      selectedKeys1: ref(["1"]),
      selectedKeys2: ref(["1"]),
      collapsed: ref(false),
      openKeys: ref(["sub1"]),
    };
  },
});
</script>
<style>
#components-layout-demo-top-side-2 .logo {
  float: left;
  width: 120px;
  height: 31px;
  margin: 16px 24px 16px 0;
  background: rgba(255, 255, 255, 0.3);
}

.ant-row-rtl #components-layout-demo-top-side-2 .logo {
  float: right;
  margin: 16px 0 16px 24px;
}

.site-layout-background {
  background: #fff;
}
</style>